﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "新增-系统参数";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    工单编号
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
            </p>
            <p>
                <label>
                    工单日期
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    工单状态
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>
            <p>
                <label>
                    部门编号：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { @Readonly = "true" })
                @*<input id="btn" type="button" value="..." style="float:left;" />*@
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>
            <p>
                <label>
                    部门名称
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { style = "width:180px;", @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>
            <p style="width:100%;height:35px;">
                <label>
                    备　　注
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { style = "width:80%;height:30px;", @Readonly = "true" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
            </p>

            <table class="treetable list" width="100%">
                <thead>
                    <tr>
                        <th>项号</th>
                        <th>料号</th>
                        <th>工艺路线</th>
                        <th>工艺路线版本</th>
                        <th>工艺路线名称</th>
                        <th>单位</th>
                        <th>数量</th>
                        <th>完工数量</th>
                        <th>起始日期</th>
                        <th>需求日期</th>
                        <th>加工状态</th>
                        <th>项状态</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>项号</td>
                        <td><a href="/Manufacturing/Order/Processlist" style="color:dodgerblue" target="dialog" width="1200" height="360" rel="page1">料号1</a></td>
                        <td><a href="/Manufacturing/Order/CraftLine" style="color:dodgerblue" target="dialog" width="600" height="360" rel="page1">工艺路线1</a></td>
                        <td>工艺路线版本</td>
                        <td>工艺路线名称</td>
                        <td>单位</td>
                        <td>数量</td>
                        <td>完工数量</td>
                        <td>起始日期</td>
                        <td>需求日期</td>
                        <td>加工状态</td>
                        <td>项状态</td>
                    </tr>
                    <tr>
                        <td>项号</td>
                        <td><a href="/Manufacturing/Order/Processlist" style="color:dodgerblue" target="dialog" width="1200" height="360" rel="page1">料号2</a></td>
                        <td><a href="/Manufacturing/Order/CraftLine" style="color:dodgerblue" target="dialog" width="600" height="360" rel="page1">工艺路线2</a></td>
                        <td>工艺路线版本</td>
                        <td>工艺路线名称</td>
                        <td>单位</td>
                        <td>数量</td>
                        <td>完工数量</td>
                        <td>起始日期</td>
                        <td>需求日期</td>
                        <td>加工状态</td>
                        <td>项状态</td>
                    </tr>
                </tbody>
            </table>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>
